package com.edu.base.ums.bannerPosition.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 广告位置，及位置收费方式（包天/曝光次数）。对象 ad_banner_position
 * 
 * @author lzs
 * @date 2021-04-29
 */
@ApiModel("广告位置")
public class AdBannerPosition extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 上级节点 */
    private String id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String parentPositionId;

    /** 位置名称 */
    @Excel(name = "位置名称")
    @ApiModelProperty("位置名称")
    private String positionName;

    /** 天收费 */
    @Excel(name = "天收费")
    @ApiModelProperty("天收费") 
    private Long level;

     private Long pId;

    /** 天收费优惠 */
    @Excel(name = "天收费优惠")
    @ApiModelProperty("天收费优惠")  
    private Long level2;

     private Long pId2;

    /** 优惠日期截止 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "优惠日期截止", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("优惠日期截止")
    private Date preferentialDate;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setParentPositionId(String parentPositionId) 
    {
        this.parentPositionId = parentPositionId;
    }

    public String getParentPositionId() 
    {
        return parentPositionId;
    }
    public void setPositionName(String positionName) 
    {
        this.positionName = positionName;
    }

    public String getPositionName() 
    {
        return positionName;
    }
    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }
    public void setpId(Long pId) 
    {
        this.pId = pId;
    }

    public Long getpId() 
    {
        return pId;
    }
    public void setLevel2(Long level2) 
    {
        this.level2 = level2;
    }

    public Long getLevel2() 
    {
        return level2;
    }
    public void setpId2(Long pId2) 
    {
        this.pId2 = pId2;
    }

    public Long getpId2() 
    {
        return pId2;
    }
    public void setPreferentialDate(Date preferentialDate) 
    {
        this.preferentialDate = preferentialDate;
    }

    public Date getPreferentialDate() 
    {
        return preferentialDate;
    }

	public AdBannerPosition() {
		super();
		// TODO Auto-generated constructor stub
	}

	public AdBannerPosition(String id, String parentPositionId, String positionName, Long level, Long pId, Long level2,
			Long pId2, Date preferentialDate) {
		super();
		this.id = id;
		this.parentPositionId = parentPositionId;
		this.positionName = positionName;
		this.level = level;
		this.pId = pId;
		this.level2 = level2;
		this.pId2 = pId2;
		this.preferentialDate = preferentialDate;
	}

    
}
